using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace Kollektiv.DataModel.Web
{
    [DataContract]
    public class StarRating : Rating
    {
        public StarRating()
            : base()
        {
            List<RatingChoice> choices = new List<RatingChoice>();
            choices.Add(new RatingChoice() { Rating = this, Name = "1" });
            choices.Add(new RatingChoice() { Rating = this, Name = "2" });
            choices.Add(new RatingChoice() { Rating = this, Name = "3" });
            choices.Add(new RatingChoice() { Rating = this, Name = "4" });
            choices.Add(new RatingChoice() { Rating = this, Name = "5" });

            this.RatingChoices = choices.AsEnumerable();
        }
    }
}

